#ifndef __SERVICE_MANAGER_H__
#define __SERVICE_MANAGER_H__

#include <glibmm/object.h>
#include <glibmm/refptr.h>
#include <list>

#include "Global.h"


namespace Gnodroid {
  
    class Service;
    class App;
  
    /** 服务管理器
     */
    class ServiceManager :
        public Glib::Object
    {
    public:
        ServiceManager();
        Service* getService(ServiceId sId);
        void start();
        void stop();

    protected:

    private:
        //App* m_rpApp;
        std::list<Service*> m_lsServiceList;

        void __registeService(Service* service);
  
    };

}

#endif
